package com.xinrui.attendanceweb.controller;

import com.xinrui.attendanceweb.common.R;
import com.xinrui.attendanceweb.service.ClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/classes")
public class ClassesController {

    @Autowired
    private ClassesService classesService;

    @GetMapping()
    public R pageQueryStudent(){
        return new R(true,"查询班级列表成功",classesService.classList());
    }


}
